<?php #coding: utf-8 æ ø å

class Entitet_titel extends CI_Controller {
/* FUNKTIONER:
	rediger_titler(


*/
	function rediger_titler(){	
		$id_individ = $this->input->post('id_individ');
		$this->load->model('translation/array_model');
		$id_array = $this->array_model->post_ider_modtag($this->input->post('id_array'));
		$this->load->model('core/entitet');
		$person = new entitet();
		foreach($id_array as $id){
			$titel_id = $this->input->post('titel_'.$id);
			$sub_titel = $this->input->post('sub_titel_'.$id);
			$person->rediger_titel($id,$titel_id,$sub_titel);
		}
		redirect("almanak/side/".$id_individ);
	}

}
